﻿using OccurrencesWorkflow.SpecializedControl.ScheduledReturn.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OccurrencesWeb.UserControls.WorkflowTasks.ScheduledReturn
{
    public partial class ScheduledClientCollectTask : BaseTaskUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void btnComplete_Click(object sender, EventArgs e)
        {
            if (TaskId.HasValue)
            {
                ScheduledClientCollectTaskControl task = new ScheduledClientCollectTaskControl(TaskId.Value);
                task.Complete(DateTime.Now.AddDays(-10));
            }
        }
    }
}